<?php
include_once('HTGPage.class.php');

$page = new HTGPage();
/* @var $utils Utils */  //eclipse php code hinting
$utils = $page->myUtils;

$isPaidMember=false;
if(isset($_SESSION['u_id'])) {
	$isPaidMember = $utils->isPaidMember($_SESSION['u_id']);	
}

$posts = $utils->getBlogEntries();

$homeContent = $utils->get_include_contents('home.html');
//link the css in
$page->preHeadCloseContent = '
<link rel="stylesheet" href="nivoslider/nivo-slider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="liscroll/li-scroller.css" type="text/css" media="screen" />
<link href="home.css" type="text/css" rel="stylesheet" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="nivoslider/jquery.nivo.slider.pack.js" type="text/javascript"></script>

<script src="liscroll/jquery.li-scroller.1.0.js" type="text/javascript"></script>
<script type="text/javascript">
$(window).load(function() {
    $(\'#slider\').nivoSlider({
    animSpeed: 10,
    controlNav: false,
    directionNavHide: true
    
    });
    
    $("ul.newsticker").liScroll();
});
</script>
';

$page->content .= $homeContent;
$page->display();

?>